import request from '@/utils/request'

// 查询应急常识附件列表
export function listGeneknoattach(query) {
  return request({
    url: '/kno/geneknoattach/list',
    method: 'get',
    params: query
  })
}

// 查询应急常识附件详细
export function getGeneknoattach(knoattachid) {
  return request({
    url: '/kno/geneknoattach/' + knoattachid,
    method: 'get'
  })
}

// 新增应急常识附件
export function addGeneknoattach(data) {
  return request({
    url: '/kno/geneknoattach',
    method: 'post',
    data: data
  })
}

// 修改应急常识附件
export function updateGeneknoattach(data) {
  return request({
    url: '/kno/geneknoattach',
    method: 'put',
    data: data
  })
}

// 删除应急常识附件
export function delGeneknoattach(knoattachid) {
  return request({
    url: '/kno/geneknoattach/' + knoattachid,
    method: 'delete'
  })
}
